use serde::{Serialize,Deserialize};
use serde_json::Value;


/// 用户的信息
/// * 接口：`https://api.uyiban.com/officeTask/client/index/detail`
/// * 方式:GET
/// * 参数:CSRF,TaskId
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct TaskDetail {
    #[serde(rename = "Id")]
    pub id: String,
    #[serde(rename = "Title")]
    pub title: String,
    #[serde(rename = "Type")]
    pub type_field: i64,
    #[serde(rename = "ReceiverSendBack")]
    pub receiver_send_back: i64,
    #[serde(rename = "TypeId")]
    pub type_id: String,
    #[serde(rename = "AllowSendBackHours")]
    pub allow_send_back_hours: i64,
    #[serde(rename = "AllowSendBackTimes")]
    pub allow_send_back_times: i64,
    #[serde(rename = "PubOrgName")]
    pub pub_org_name: String,
    #[serde(rename = "PubPersonName")]
    pub pub_person_name: String,
    #[serde(rename = "Content")]
    pub content: String,
    #[serde(rename = "AllowTimeout")]
    pub allow_timeout: i64,
    #[serde(rename = "AttachmentIds")]
    pub attachment_ids: String,
    #[serde(rename = "PubOrgId")]
    pub pub_org_id: String,
    #[serde(rename = "IsPubPersonShow")]
    pub is_pub_person_show: i64,
    #[serde(rename = "CreateTime")]
    pub create_time: i64,
    #[serde(rename = "StartTime")]
    pub start_time: i64,
    #[serde(rename = "EndTime")]
    pub end_time: i64,
    #[serde(rename = "Displayed")]
    pub displayed: i64,
    #[serde(rename = "TimeState")]
    pub time_state: i64,
    #[serde(rename = "WFId")]
    pub wfid: String,
    #[serde(rename = "AttachmentList")]
    pub attachment_list: Vec<Value>,
    #[serde(rename = "WorkflowState")]
    pub workflow_state: i64,
    #[serde(rename = "InitiateId")]
    pub initiate_id: String,
    #[serde(rename = "RetreatReason")]
    pub retreat_reason: String,
    #[serde(rename = "EvaluationState")]
    pub evaluation_state: i64,
    #[serde(rename = "EvaluationReason")]
    pub evaluation_reason: String,
    #[serde(rename = "State")]
    pub state: i64,
    #[serde(rename = "RecordState")]
    pub record_state: i64,
    #[serde(rename = "CanSendBack")]
    pub can_send_back: i64,
    #[serde(rename = "SendBackEndTime")]
    pub send_back_end_time: i64,
    #[serde(rename = "RetreatCount")]
    pub retreat_count: i64,
    #[serde(rename = "IsLost")]
    pub is_lost: i64,
    #[serde(rename = "Feedback")]
    pub feedback: i64,
    #[serde(rename = "ChangeReason")]
    pub change_reason: String,
}
